package ui;

import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

public class QueryUpPart extends Composite {

	private Text count;
	/**
	 * Create the composite
	 * @param parent
	 * @param style
	 */
	public QueryUpPart(Composite parent, int style) {
		super(parent, style);
		//
		final Button loadButton = new Button(this, SWT.NONE);
		loadButton.setText("Load");
		loadButton.setBounds(0, 0, 44, 23);
		
		final Button saveAsButton = new Button(this, SWT.NONE);
		saveAsButton.setText("Save As");
		saveAsButton.setBounds(50, 0, 51, 23);
		final Button queryButton = new Button(this, SWT.NONE);
		queryButton.setText("Query");
		queryButton.setBounds(205, 0, 44, 23);

		final Label dateLabel = new Label(this, SWT.NONE);
		dateLabel.setText("Date:");
		dateLabel.setBounds(255, 5, 25, 13);

		Text fromDateText = new Text(this, SWT.BORDER);
		fromDateText.setBounds(283, 0, 59, 21);

		final Label toLabel = new Label(this, SWT.NONE);
		toLabel.setText("To");
		toLabel.setBounds(343, 5, 12, 13);

		Text toDateText = new Text(this, SWT.BORDER);
		toDateText.setBounds(358, 0, 59, 21);

		final Button checkButton = new Button(this, SWT.CHECK);
		checkButton.setText("Check All");
		checkButton.setBounds(107, 3, 59, 16);

		count = new Text(this, SWT.BORDER);
		count.setToolTipText("Count of Query Result");
		count.setBounds(175, 0, 25, 21);
	}

	@Override
	protected void checkSubclass() {
		// Disable the check that prevents subclassing of SWT components
	}

}
